package com.fulihui.systemcore.repository;

import com.fulihui.systemcore.dal.dataobj.PropertiesDOExample;
import com.fulihui.systemcore.dto.PropertiesDTO;
import com.fulihui.systemcore.request.prop.PropertiesPageRequest;

import java.util.List;

/**
 * @author Willard.Hu on 2016/3/5.
 */
public interface PropertiesRepository {

    void insert(PropertiesDTO dto);

    boolean updateValue(PropertiesDTO dto);

    boolean delete(int id);

    PropertiesDTO queryByPK(int id);

    List<PropertiesDTO> query(PropertiesDOExample example);

    List<PropertiesDTO> queryPage(PropertiesPageRequest request);

    int totalCount(PropertiesPageRequest request);

}
